﻿/************************************************
*
* Copyright(c) ZeeGuo.com
*
* CLR : 4.0.30319.296
*
* FileName : EntityComicBook.cs
*
* Author : Kurodo
*
* CreatTime : 2013/6/27 12:19:50
*           
*************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComicSpider.Model
{
    public abstract class EntityComicBookList : Entity
    {
        public string Comic_WebSiteUrl
        {
            get;
            protected set;
        }

        public string Comic_KeyCode
        {
            get;
            protected set;
        }

        public string Comic_Author
        {
            get;
            protected set;
        }

        public string Comic_Address
        {
            get;
            protected set;
        }

        public string Comic_State
        {
            get;
            protected set;
        }

        public string Comic_Subject
        {
            get;
            protected set;
        }

        public string Comic_Category
        {
            get;
            protected set;
        }

        public string Comic_Update
        {
            get;
            protected set;
        }

        //public string Comic_Introduction
        //{
        //    get;
        //    protected set;
        //}

        public string Comic_HotNum
        {
            get;
            protected set;
        }
        //别名
        public string Comic_OtherName
        {
            get;
            protected set;
        }
        //原名
        public string Comic_OldName
        {
            get;
            protected set;
        }
        //书名
        public string Comic_BookName
        {
            get;
            protected set;
        }

        protected virtual String GetWebSiteUrl()
        {
            return string.Empty;
        }
        //字母缩写
        protected virtual String GetKeyCode(string context)
        {
            return string.Empty;
        }
        //作者
        protected virtual String GetAuthor(string context)
        {
            return string.Empty;
        }
        //地域
        protected virtual String GetAddress(string context)
        {
            return string.Empty;
        }
        //状态
        protected virtual String GetState(string context)
        {
            return string.Empty;
        }
        //题材
        protected virtual String GetSubject(string context)
        {
            return string.Empty;
        }
        //类别
        protected virtual String GetCategory(string context)
        {
            return string.Empty;
        }
        //更新
        protected virtual String GetUpdate(string context)
        {
            return string.Empty;
        }
        //人气
        protected virtual String GetHotNum(string context)
        {
            return string.Empty;
        }
        //书名
        protected virtual String GetBookName(string context)
        {
            return string.Empty;
        }
        //简介
        //protected virtual String GetIntroduction(string context)
        //{
        //    return string.Empty;
        //}
        //别名
        protected virtual String GetOtherName(string context)
        {
            return string.Empty;
        }
        //原名
        protected virtual String GetOldName(String context)
        {
            return string.Empty;
        }

        public abstract List<EntityComicBook> GetComicList(string context);

        public override void EntityBuild(string context)
        {
            this.Comic_WebSiteUrl = this.GetWebSiteUrl();
            this.Comic_KeyCode = this.GetKeyCode(context);
            this.Comic_Author = this.GetAuthor(context);
            this.Comic_Address = this.GetAddress(context);
            this.Comic_BookName = this.GetBookName(context);
            this.Comic_Category = this.GetCategory(context);
            this.Comic_HotNum = this.GetHotNum(context);
            //this.Comic_Introduction = this.GetIntroduction(context);
            this.Comic_OldName = this.GetOldName(context);
            this.Comic_OtherName = this.GetOtherName(context);
            this.Comic_State = this.GetState(context);
            this.Comic_Subject = this.GetSubject(context);
            this.Comic_Update = this.GetUpdate(context);
        }
    }
}
